﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BestBuy.DAL
{
    public class Creplys
    {
        public static String getName(int iduser)
        {
            TradeKeyDataContext context = new TradeKeyDataContext();
            int idcty = context.ThongTinTaiKhoans.Where(p => p.IDTaiKhoan == iduser).FirstOrDefault().IDCongTy.Value;
            return context.CongTies.Where(p => p.IDCongTy == idcty).FirstOrDefault().TenCongTy;
        }
        public static void InsertReply(int idreceiver, String content)
        {
            TradeKeyDataContext context = new TradeKeyDataContext();
            
        }
    }
}